package com.wyl.circularDependency;

import org.springframework.stereotype.Component;

/**
 * @author 吴宇亮 on 2022/3/17 9:32
 */
@Component
public class BeanB {

    private BeanA beanA;

    public void invokeBeanA() {
        beanA.hello();
    }

    public void hello() {
        System.out.println("hello, I am BeanA");
    }
}
